
public class CustomerA implements ICustomer {

    public void visit(Meat meat) {
        System.out.println("肉类：" + meat.getPrice());
    }

    public void visit(Cabbage cabbage) {
        System.out.println("蔬菜：" + cabbage.getPrice());
    }
}